﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="Group Test.aspx.cs" Inherits="V2Test.Group_Test" %>

<%@ Register assembly="Cwing.UI.Validation" namespace="Cwing.UI.Controls" tagprefix="cwvf" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml" >
<head runat="server">
    <title></title>
</head>
<body>
    <form id="form1" runat="server">
    <div>
    
        Group 1:<br />
    </div>
    <cwvf:ValidationTextBox ID="ValidationTextBox1" runat="server" 
        GroupName="Group1" Path="//Control[@ID='Number']" 
        ValidationSummary="ErrorList1" ValidationType="Client"></cwvf:ValidationTextBox>
    <cwvf:ErrorList ID="ErrorList1" runat="server">
    </cwvf:ErrorList>
    <p>
        Group 2:</p>
    <p>
        <cwvf:ValidationTextBox ID="ValidationTextBox2" runat="server" 
            GroupName="Group 2" Path="//Control[@ID='Email']" 
            ValidationSummary="ErrorList2" ValidationType="Client"></cwvf:ValidationTextBox>
    </p>
    <cwvf:ErrorList ID="ErrorList2" runat="server">
    </cwvf:ErrorList>
    <asp:Button ID="Button1" runat="server" Text="Group 1" OnClientClick="javascript:return CW.Validate('Group1');" />
    <asp:Button ID="Button2" runat="server" Text="Group 2" OnClientClick="javascript:return CW.Validate('Group 2');"  />
    <asp:Button ID="Button3" runat="server" Text="All" OnClientClick="javascript:return CW.Validate();" />
    </form>
</body>
</html>
